﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sauces.Bussinees.Entities.Ventas;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations.Schema;

namespace Sauces.Repository.Mapping
{
   public  class NotaPedidoMap:EntityTypeConfiguration<NotaPedido>
    {
       public NotaPedidoMap()
       {
           this.HasKey(t => t.Id);

           
           this.Property(p => p.Fecha).IsRequired();
           this.Property(p => p.Total).IsRequired();

           this.ToTable("NotaPedido");

       }
    }
}
